package com.imooc.miaosha.redis;

/**
 * 具体key实现 user业务 需要存储的key
 */
public class UserKey extends BasePrefix{

	private UserKey(String prefix) {
		super(prefix);
	}
	private UserKey(int expireSeconds,String prefix) {
		super(expireSeconds,prefix);
	}
	//定义不同的key
	public static UserKey getById = new UserKey("id");
	public static UserKey getByIdNx= new UserKey(5,"id");
	public static UserKey getByName = new UserKey("name");
}
